package com.xinghanlaser.applet.base.auth.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xinghanlaser.applet.base.auth.entity.ResourceDO;
import com.xinghanlaser.applet.base.auth.entity.RoleDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

/**
 * @author dym
 * @date 2019-11-19 11:44
 */
@Data
@ApiModel("用户详情对象")
public class UserDetailVO {
    @ApiModelProperty(value = "用户ID")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户密码")
    @JsonIgnore
    private String password;

    @ApiModelProperty(value = "用户角色列表")
    private Set<RoleDO> roles;

    @ApiModelProperty(value = "用户菜单列表")
    private Set<ResourceDO> menus;

    @ApiModelProperty(value = "用户资源（按钮、接口）列表")
    private Set<ResourceDO> resources;

    @ApiModelProperty(value = "是否为超级管理员: 0 否; 1 是")
    private Boolean isSuperAdmin;

    @ApiModelProperty(value = "是否启用 默认1代表启用，0代表禁用")
    private Integer isEnable;

}
